package ar.com.photo_admin.service.marshallers

import grails.converters.JSON

import ar.com.photo_admin.domain.*;
import ar.com.photo_admin.service.dto.*;

class EventMarshaller {
	
	void register() {		
		
		JSON.registerObjectMarshaller(EventDTO) { EventDTO event ->	
			return [
				name : event.name,
				cover : event.cover,	
				description: event.description,
				status: event.status,
				albums: event.albums,
				id: event.id
			]		
		}				
	}
}
